<?php

/**
 * Description of UtenteDataManager
 *
 * @author rocco
 */
require_once '../bean/Domanda.php';
require_once 'TestStudentiDataManager.php';

class TestStudentiManager
{
    private static $instance;

    public static function getInstance()
    {
        if(self::$instance == null)
        {
            $c = __CLASS__;
            self::$instance = new $c;
        }
        return self::$instance;
    }

    public function hasListaAttachments($connection, $listaDomande)
    {
        $flag = FALSE;
        for($i=0; $i<count($listaDomande) && $flag==FALSE; $i++)
        {
            $domanda = TestDataManager::getInstance()->getDomanda($connection, $listaDomande[$i]);
            if ($domanda->getLink() != "")
                $flag=TRUE;
        }
        return $flag;
    }
}
?>
